import { createBrowserRouter } from "react-router-dom";
// 大页面布局
import Layout from '../components/Layout'
// 创建设计
import Create from '../components/Create/Create'
// 素材中心
import Materialsc from '../components/Materialsc/Materialsc'
// tab素材
import Sc from '../components/Materialsc/sc'
// tab图片
import Tp from '../components/Materialsc/tp'
// tab文字
import Wz from '../components/Materialsc/wz'
// 模板中心
import Modulmb from '../components/Modulmb/Modulmb'
// 为你推荐
import Suggest from '../components/Suggest/Suggest'
// 个人主页
import Hand from '../components/handEdit/Hand'
// 客服
import Chat from '../components/Chat/chat'
// 跳转的新layou
import PagesLayout from '../components/NewPages/PagesLayout/PagesLayout'

import PagesBg from '../components/NewPages/PagesBg/PagesBg'
import PagesTp from '../components/NewPages/PagesTp/PagesTp'
import PagesRight from '../components/NewPages/PagesRight/PagesRight'
import CommentBox from '../components/NewPages/NewCommentBox/CommentBox'
const routers=[
    {
        path:'/layout/create',
        element:<Create/>
    },{
        path:'/layout/materialsc',
        element:<Materialsc/>
    },{
        path:'/layout/modulmb',
        element:<Modulmb/>
    },{
        path:'/layout/suggest',
        element:<Suggest/>
    },{
        path:'/layout/sc',
        element:<Sc/>
    },{
        path:'/layout/tp',
        element:<Tp/>
    },{
        path:'/layout/wz',
        element:<Wz/>
    },{
        path:'/layout/chat',
        element:<Chat/>
    },
     
]
const router = createBrowserRouter([
    {
        path: '/',
        element: <Layout />,
        children:routers
    },{
        path:'/hand',
        element:<Hand/>
    } ,{
        path:'/pageslayout',
        element:<PagesLayout/>
    } ,{
        path:'/pagestp',
        element:<PagesTp/>
    },{
        path:'/pagesbg',
        element:<PagesBg/>
    },{
        path:'/pagesright',
        element:<PagesRight/>
    },{
        path:'/commentbox',
        element:<CommentBox/>
    }
])
export default router